<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>循环中的闭包</title>
</head>
<body>
	<script>
   for(var i=0;i<10;i++){
   	(function(e){
   	   setTimeout(function(){
   	   	alert(e)
   	   },10)
      }) (i)
     }
	</script>
</body>
</html>